package com.zhoujian.Decorator;

//抽象类
public abstract class Decorator implements Component{

    //装饰器设计模式使用组合的设计模式进行装饰
    Component component;

    public Decorator(Component component) {
        this.component = component;
    }

    @Override
    public void operation() {
        component.operation();
    }


}
